package com.hoshiicloud.user.service.rbac;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.rbac.entity.SysDepartmentUsers;

import java.util.List;

/**
 * 部门关联用户Service接口
 *
 * @mail : maiboyc@163.com
 **/
public interface SysDepartmentUsersService extends IService<SysDepartmentUsers> {

    Boolean addSysDepartmentUsers(SysDepartmentUsers entity);

    Boolean deletePhysicByUserId(Long userId);

    Boolean deletePhysicByDepartmentId(Long departmentId);

    List<Long> listUsersByDepartmentId(Long departmentId);

    List<Long> listDepartmentsByUserId(Long userId);
}
